package com.hqd.ch03.v48.boot.logging;

import com.hqd.ch03.v48.io.support.SpringFactoriesLoader;

public interface LoggingSystemFactory {

    static LoggingSystemFactory fromSpringFactories() {
        return new DelegatingLoggingSystemFactory(
                (classLoader) -> SpringFactoriesLoader.loadFactories(LoggingSystemFactory.class, classLoader));
    }

    LoggingSystem getLoggingSystem(ClassLoader classLoader);
}

